package com.baizhi.factory;

public class Test {
    public static void main(String[] args) {
        //创建工厂
        FruitFactory ff = new FruitFactory();
        Fruit f = ff.getFruit("苹果");
        f.product();


        Fruit f2 = ff.getFruit("香蕉");
        f2.product();
    }
}
